package com.wqtz.chechai.bean;

import java.io.Serializable;
import java.util.List;

/**
 * 项目名称： CheChai
 * 创建人 : Liberation
 * 创建时间: 2017/1/3 9:49
 */

public class CarResult implements Serializable {

	/**
	 * reason : 成功返回
	 * result : {"est_price_result":[104.7,96.32,112.03],"est_price_year_result":[{"year":2011,"price":141.32},{"year":2012,"price":173.44},{"year":2013,"price":196.73},{"year":2014,"price":213.3}],"est_price_area":[{"price":109.35,"area":"东北地区","areaid":"1"},{"price":104.7,"area":"东部沿海地区","areaid":"2"},{"price":106.1,"area":"南部沿海地区","areaid":"3"},{"price":121.54,"area":"黄河中游地区","areaid":"4"},{"price":110.13,"area":"长江中游地区","areaid":"5"},{"price":117.49,"area":"西南地区","areaid":"6"},{"price":110.36,"area":"西北地区","areaid":"7"},{"price":104.7,"area":"北部沿海地区","areaid":"9"}]}
	 * error_code : 0
	 */

	private String reason;
	private ResultBean result;
	private int error_code;

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public ResultBean getResult() {
		return result;
	}

	public void setResult(ResultBean result) {
		this.result = result;
	}

	public int getError_code() {
		return error_code;
	}

	public void setError_code(int error_code) {
		this.error_code = error_code;
	}

	public static class ResultBean {
		private List<Double> est_price_result;
		private List<EstPriceYearResultBean> est_price_year_result;
		private List<EstPriceAreaBean> est_price_area;

		public List<Double> getEst_price_result() {
			return est_price_result;
		}

		public void setEst_price_result(List<Double> est_price_result) {
			this.est_price_result = est_price_result;
		}

		public List<EstPriceYearResultBean> getEst_price_year_result() {
			return est_price_year_result;
		}

		public void setEst_price_year_result(List<EstPriceYearResultBean> est_price_year_result) {
			this.est_price_year_result = est_price_year_result;
		}

		public List<EstPriceAreaBean> getEst_price_area() {
			return est_price_area;
		}

		public void setEst_price_area(List<EstPriceAreaBean> est_price_area) {
			this.est_price_area = est_price_area;
		}

		public static class EstPriceYearResultBean {
			/**
			 * year : 2011
			 * price : 141.32
			 */

			private int year;
			private double price;

			public int getYear() {
				return year;
			}

			public void setYear(int year) {
				this.year = year;
			}

			public double getPrice() {
				return price;
			}

			public void setPrice(double price) {
				this.price = price;
			}
		}

		public static class EstPriceAreaBean {
			/**
			 * price : 109.35
			 * area : 东北地区
			 * areaid : 1
			 */

			private double price;
			private String area;
			private String areaid;

			public double getPrice() {
				return price;
			}

			public void setPrice(double price) {
				this.price = price;
			}

			public String getArea() {
				return area;
			}

			public void setArea(String area) {
				this.area = area;
			}

			public String getAreaid() {
				return areaid;
			}

			public void setAreaid(String areaid) {
				this.areaid = areaid;
			}
		}
	}
}
